var _m_url = window.parent._index_path;
 

function initNewJS(dsId,type){
	var divName = 'loadZB;shk_addItemDatagrid'; //存放主表和明细表的divName
	var divNameT= new Array();
	$.ajax({
		type:'post',
		url:_m_url+'framework/loadMColumnsU',
		data:{'colId':dsId,'type':type},
		success:function(data){
			if(data ==""){
				alert("您长时间未操作，系统已经自动退出!，请重新登陆");
			}else{
				var typeT = new Array();
				typeT = type.split(";");
				divNameT = divName.split(";");
				for(var i = 0; i < typeT.length; i++){
					producePage(data[i],divNameT[i],typeT[i],'');
				}
				$('#shk_addItemDatagrid').datagrid({
					height:260
				})
			}
		}
	})
	
	$.ajax({
		type:'post',
		url:_m_url+'singlePages/prebuten',
		data:{'butnId':'ds_fx_clients_jslist1;ds_fx_clients_jslist_item1','dsId':'ds_fx_clients_jslist1;ds_fx_clients_jslist_item1'},
		success:function(data){
			var dt=data.printTypeList;
			console.log(dt);
		}
	})
}

